<?php if (!strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo str_replace('&', '&amp;', $link['href']); ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<!-- NDK - add style -->
<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/css/style.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
DD_belatedPNG.fix('img, #header .div3 a, #content .left, #content .right, .box .top');
</script>
<![endif]-->
<!--<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>-->
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<script type="text/javascript"><!--
function bookmark(url, title) {
	if (window.sidebar) { // firefox
    window.sidebar.addPanel(title, url, "");
	} else if(window.opera && window.print) { // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) {// ie
   		window.external.AddFavorite(url, title);
	}
}
//--></script>
<!-- NDK - script run flash -->
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="catalog/view/javascript/AC_RunActiveContent.js" language="javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<!--	  BEGIN HEADER -->
<div class="page_margins">
  <div class="page">
    <div class="header">
      <div class="logo float_left"> <a href="index.html"><img src="catalog/view/theme/w4u/img/logo.png" /></a> </div>
      <div class="w153 float_right p15t"> <img src="catalog/view/theme/w4u/img/card2.jpg" width="124px" usemap="#Map" class="m15b"/>
<map name="Map" id="Map">
  <area shape="rect" coords="4,6,61,116" href="http://paypal.com" target="_blank" alt="Paypal" />
  <area shape="rect" coords="65,6,120,117" href="https://checkout.google.com" target="_blank" alt="Google Checkout" />
</map>
        <div class="w153 bgbad">
<div id="addedToCart_message" style="display:none"  class="thickbox"  align="center">
<p><img src="catalog/view/theme/w4u/img/addtocart_success.png" align="absmiddle"/>&nbsp;&nbsp;Product has been added to your cart</p>
</div>
<a  class="thickbox" href="#TB_inline?height=50&width=230&inlineId=addedToCart_message&modal=true" id='addtocart_click'></a>
		<?php 
		//================ NDK - GET THE SHORT SHOPPING CART DISPLAY IN HEADER =============
			foreach ($modules as $module) 
			{ 
				echo ${$module['code']}; 
			} 
			?>
        </div>
      </div>
      <br style="clear:both;" />
      <div class="nav_main">
        <ul>
          <li id="tab_home"><a href="<?php echo str_replace('&', '&amp;', $home); ?>"><?php echo $this->language->get('text_home'); ?></a></li>
          <li id="tab_special"><a href="<?php echo str_replace('&', '&amp;', $special); ?>"><?php echo $this->language->get('text_special'); ?></a></li>
          <li id="tab_webshop"><a href="<?php echo str_replace('&', '&amp;', $webshop); ?>"><?php echo $this->language->get('text_shops'); ?></a></li>
          <li id="tab_wineyard"><a href="<?php echo str_replace('&', '&amp;', $wineyard); ?>"><?php echo $this->language->get('text_wineyards'); ?></a></li>
          <li id="tab_aboutus"><a href="<?php echo str_replace('&', '&amp;', $aboutus); ?>"><?php echo $this->language->get('text_aboutus'); ?></a></li>
          <!--<li><a href=""><?php echo $this->language->get('text_faqs'); ?></a></li>-->
          <li id="tab_contact"><a href="<?php echo str_replace('&', '&amp;', $contact); ?>"><?php echo $this->language->get('text_contact'); ?></a></li>
        </ul>
        <div class="search float_right">

			
         <input type="text" class="ct" value="Enter your keyword..."  value="<?php echo $text_keyword; ?>" id="filter_keyword" onclick="this.value = '';" style="padding-left:4px;"/>
          <div class="icon"><a onclick="moduleSearch();" class="button"><img title="Search" src="catalog/view/theme/w4u/img/seach_icon.png" /></a></div>
          <br style="clear:both" />
        </div>
        <br style="clear:both" />
      </div>
    </div>
    <div class="main">
      <div class="w950 po">
        <script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '950',
			'height', '362',
			'src', 'catalog/view/theme/w4u/flash/wine4you',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'wine4you',
			'bgcolor', '#000000',
			'name', 'wine4you',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'catalog/view/theme/w4u/flash/wine4you',
			'salign', ''
			); //end AC code
	}
</script>
        <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="950" height="362" id="wine4you" align="middle">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="allowFullScreen" value="false" />
          <param name="movie" value="catalog/view/theme/w4u/flash/wine4you.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="bgcolor" value="#000000" />
          <embed src="catalog/view/theme/w4u/flash/wine4you.swf" quality="high" wmode="transparent" bgcolor="#000000" width="950" height="362" name="wine4you" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
        </noscript>
        <div class="loginbox p30t">
		 <?php if (!$logged) { ?>
          <h3 class="chagetext redtext">LOGIN to WINE4U</h3>
          <br/>
<!--BEGIN LOGIN FORM-->		
  <form id="login" enctype="multipart/form-data" method="post" action="<?php echo HTTPS_SERVER ?>index.php?route=account/login">
          <label style="vertical-align:middle">Username&nbsp;</label><input type="text"  name="email" class="txt1" value=""/>
          <label style="vertical-align:middle">Password&nbsp;&nbsp;</label><input type="password" name="password" class="txt1" value=""/>
          <div class="float_right"><a  class="button" onclick="$('#login').submit();" title="Login"><img src="catalog/view/theme/w4u/img/bt_log.jpg" /></a></div>
		 <?php if ($redirect) { ?>
            <input type="hidden" name="redirect" value="<?php echo str_replace('&', '&amp;', $redirect); ?>" />
            <?php } ?>
		  </form>
<!--LOGIN FORM-->		  
          <div style="padding-top:15px">
            <br style="clear:both" />
            <p><a href="<?php echo HTTPS_SERVER . 'index.php?route=account/create'; ?>" title="Create your account">Create new account</a></p>
            <p><a href="<?php echo HTTPS_SERVER . 'index.php?route=account/forgotten'; ?>" title="Forgot your password?">Forgot password?</a></p>
          </div>
          
         <?php }
		 
		 else 
		 { 
		 	echo '<div style="color:#888888"> '.$this->language->get('text_welcome').$this->session->data['fullname'];
		 ?></div>
		 <div id="acount_link" style="padding-top:5px"><div style="padding-bottom:5px"><a href="<?php echo str_replace('&', '&amp;', $account); ?>"><?php echo $text_account; ?></a></div>
      <div><a href="<?php echo str_replace('&', '&amp;', $logout); ?>"><?php echo $text_logout; ?></a></div></div>
      <?php } ?>
		<br style="clear:both" />
          <div class="bg_ng"> </div>
          <div class="bg_ng m10b">&nbsp;&nbsp;&nbsp;</div>
          <!--<div class="bg_ng p10b m10b whitetext"><a href="hvid_vine.html" class="bg_tren">Promotion</a></div>
          <div class="bg_ng p10b m10b whitetext"><a href="hvid_vine.html" class="bg_tren"> Latest News</a></div>
          <div class="bg_ng p10b m10b whitetext"><a href="hvid_vine.html" class="bg_tren">Testimonials</a></div>-->
		</div>
		
      </div>
	   <!--	  end header -->


<script type="text/javascript"><!-- 
function getURLVar(urlVarName) {
	var urlHalves = String(document.location).toLowerCase().split('?');
	var urlVarValue = '';
	
	if (urlHalves[1]) {
		var urlVars = urlHalves[1].split('&');

		for (var i = 0; i <= (urlVars.length); i++) {
			if (urlVars[i]) {
				var urlVarPair = urlVars[i].split('=');
				
				if (urlVarPair[0] && urlVarPair[0] == urlVarName.toLowerCase()) {
					urlVarValue = urlVarPair[1];
				}
			}
		}
	}
	
	return urlVarValue;
} 

$(document).ready(function() {
	route = getURLVar('route');
	if (!route) {
		$('#tab_home').addClass('current');
	} else {
		part = route.split('/');
		if (route == 'common/home') {
			$('#tab_home').addClass('current');
		}else if (route == 'product/special') {
			$('#tab_special').addClass('current');	
		} 
		else if (route == 'information/contact') {
			$('#tab_contact').addClass('current');	
		} 
		else if (route == 'product/webshop') {
			$('#tab_webshop').addClass('current');	
		}
		else if (route == 'product/product') {
			$('#tab_webshop').addClass('current');	
		} 
		 else if (route == 'account/login') {
			$('#tab_login').addClass('current');	
		} else if (part[0] == 'account') {
			$('#tab_account').addClass('current');
		} else if (route == 'checkout/cart') {
			$('#tab_cart').addClass('current');
		} 
		else if (part[0] == 'checkout') 
		{
			$('#tab_checkout').addClass('current');
		}
		else if (route == 'information/information') 
		{
			id = getURLVar('information_id');
			if(id==4)
			{
				$('#tab_aboutus').addClass('current');
			}
			if(id==6)
			{
				$('#tab_wineyard').addClass('current');
			}
		} 
		else {
			$('#tab_home').addClass('current');
		}
	}
});
//--></script>
<script type="text/javascript"><!--
$('#search input').keydown(function(e) {
	if (e.keyCode == 13) {
		moduleSearch();
	}
});

function moduleSearch() {
	url = 'index.php?route=product/search';
	
	var filter_keyword = $('#filter_keyword').attr('value')
	
	if (filter_keyword) {
		url += '&keyword=' + encodeURIComponent(filter_keyword);
	}
	
	var filter_category_id = $('#filter_category_id').attr('value');
	
	if (filter_category_id) {
		url += '&category_id=' + filter_category_id;
	}
	
	location = url;
}
//--></script>
<script type="text/javascript"><!--
$('.switcher').bind('click', function() {
	$(this).find('.option').slideToggle('fast');
});
$('.switcher').bind('mouseleave', function() {
	$(this).find('.option').slideUp('fast');
}); 
//--></script>
